package com.lyf.design.practice.theory.behavior.strategy.nju.moviesale_20.v2;

/**
 * @author LYF
 * @date 2022/6/25
 */
public class ChildDiscount implements Discount{
    @Override
    public Double getLastPrice(Double price) {
        if(price>=20)
            return price-10;
        return price;
    }

    @Override
    public Integer getLastPoint(Integer point) {
        return point;
    }
}
